i = 10

print(i, type(i))

# 动态数据类型的语言
i = "java"

print(i, type(i))

# 导包
import keyword

print(keyword.kwlist)

# 单行注释


"""

多行注释
如果注释中有单引号外面就使用双引号

"""

'''
多行注释

'''

print(1, 2, 3, 4, sep=",")

a = 100

b = 100.1

print(a, type(a))
print(b, type(b))

s = 'java"python'

print(s)

s1 = "java\npython"
# 原样输出
s2 = r"java\npython"
print(s1)
print(s2)

print(1 > 2)

print(True & False)
print(True and False)
print(True | False)
print(not True)

print(None, type(None))

a = 10
b = 3

print(a + b)
print(a - b)
print(a * b)
print(a / b)
print(a % b)
print(a // b)
print(a ** b)

s = "100"
print(s, type(s))

# 类型转换
i = int(s)
print(i, type(i))

print(bool(0))
print(bool(-100))
print(bool(1000))

i = 100

# isinstance 判断变量的类型
print(isinstance(i, int))
